mermaid.js:tree diagram
tree diagram
code:tree1.mermaid
graph LR
A
root
--> |hierarchy1|B
node1
--> |hierarchy2|C
node2
A --> |hierarchy1|D
node3
B --> |hierarchy2|E
node4
code:tree2.mermaid
graph TD
A
root
--> |hierarchy1|B
node1
--> |hierarchy2|C
node2
A --> D
node3
B --> E
node4